from AiFuPan.common import TestMysql


# 数据库连接
def mysql_connect(sql):
    connect = TestMysql.MySql(host="ifupan-test-mysql-main.mysql.polardb.rds.aliyuncs.com",
                              port=3306,
                              user='replay_dev',
                              password="A_7%pKICxzA_Oi0W",
                              charset='utf8',
                              database="replay-test",
                              )
    sql_data = connect.select(sql)
    connect.close()
    return sql_data
